package com.xscha.soyue.starter.web.enums;

import com.xscha.soyue.common.core.exception.status.SoyStatusCode;

/**
 * 基础异常
 */
public enum SoyMvcStatusCode implements SoyStatusCode {

	BAD_REQUEST(400, "错误的请求"), URL_NOT_FOUND(404, "请求地址不存在"), MISS_BODY(400, "缺少请求内容"),
	MISS_PARAMETER(400, "缺少请求参数"), READ_BODY_ERROR(400, "读取请求内容异常"), METHOD_NOT_SUPPORTED(405, "请求方式不支持"),
	NOT_ACCEPTABLE(406, "请求方式不支持");

	private final Integer code;

	private final String message;

	SoyMvcStatusCode(final Integer code, final String message) {
		this.code = code;
		this.message = message;
	}

	public Integer getCode() {
		return this.code;
	}

	public String getMessage() {
		return this.message;
	}

}
